import request from '@/axios'

export const getUserListPage = (data) => {
  return request.post({ url: '/api/user/pageList', data })
}

export const getPageListByOrg = (data) => {
  return request.post({ url: '/api/user/pageListByOrg', data })
}

export const registerUserApi = (data: any) => {
  return request.post({ url: '/api/user/register', data })
}

export const updateUserApi = (data: any) => {
  return request.post({ url: '/api/user/updateUser', data })
}

export const delUserApi = (ids: string[] | number[]) => {
  return request.post({ url: '/api/user/delUser', data: { ids } })
}

export const restPwdApi = (ids: string[] | number[]) => {
  return request.post({ url: '/api/user/restPwd', data: { ids } })
}
